const sm4 = require("miniprogram-sm-crypto").sm4;
const key = [0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, 0xfe, 0xdc, 0xba, 0x98, 0x76, 0x54, 0x32, 0x10];

let encryptData = sm4.encrypt("20201327", key); // 加密
console.log(encryptData)

let decryptData = sm4.decrypt(encrytData, key); // 解密

console.log(decryptData)
